package String.s3;

import java.util.ArrayList;
import java.util.List;

public class test_1431 {

}
class Solution {
    public List<Boolean> kidsWithCandies(int[] candies, int extraCandies) {
        int length=candies.length;
        int max=0;
        List<Boolean> list=new ArrayList<>();
        for(int i=0;i<length;i++){
            if(candies[i]>max){
                max=candies[i];
            }
        }
        for(int i=0;i<length;i++){
            if(candies[i]+extraCandies<max){
                list.add(false);
            }else{
                list.add(true);
            }
        }
        return list;
    }
}